class Query < ActiveRecord::Base
  belongs_to :advertisment
  belongs_to :lead
  belongs_to :event
  has_many :posts
  has_one :attachment
  belongs_to :user
end
